package com.ctp.ui.main;

import javax.swing.JDesktopPane;

import com.ctp.ui.table.AccountTable;
import com.ctp.ui.table.MarketTable;
import com.ctp.ui.toolarea.TraderToolBox;
import com.ctp.ui.toolarea.TraderInfoArea;

public class MainDesktop extends JDesktopPane {

	private static final long serialVersionUID = 1L;

	private MarketTable marketTable = new MarketTable();

	private AccountTable accountTable = new AccountTable();

	private TraderToolBox openLongBoard = new TraderToolBox(true);

	private TraderToolBox openShortBoard = new TraderToolBox(false);

	private TraderInfoArea traderInfoArea = new TraderInfoArea();

	public MainDesktop() {
		accountTable.setLocation(20, 108);
		marketTable.setLocation(20, 20);

		openLongBoard.setLocation(20, 165);
		openShortBoard.setLocation(355, 165);

		this.add(marketTable);
		this.add(accountTable);

		this.add(openLongBoard);
		this.add(openShortBoard);

		this.add(traderInfoArea);
	}

}
